package org.poem.viewController;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by poem on 2017/8/29.
 * 配置页面的整体的跳转
 */
@Component
public class WebViewControllerImpl extends WebMvcConfigurerAdapter {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("viewHome").setViewName("/pages/index.html");
    }
}
